-
Notifications
You must be signed in to change notification settings - Fork 0
fix: use retraction_reason in file view alert #410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
crfmc
commented
Apr 28, 2025
•
edited
Loading
edited
- Use retraction_reason property to create file overview alert string instead of notes_to_tsv
- fix: remove from accessionsOfInterest array - feat: add retraction reason to string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the file view alert to use the retraction_reason property instead of notes_to_tsv and refines the alert rendering conditions. Key changes include:
- Using retraction_reason to construct the retracted warning message.
- Adjusting the accessionsOfInterest list to only include one accession.
- Bumping the project version in pyproject.toml.
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
File | Description |
---|---|
src/encoded/static/components/item-pages/FileView.js | Updated alert logic to use retraction_reason and modified conditions. |
pyproject.toml | Incremented version from 0.165.0 to 0.165.1 to reflect the changes. |
Files not reviewed (1)
- CHANGELOG.rst: Language not supported
Comments suppressed due to low confidence (2)
src/encoded/static/components/item-pages/FileView.js:104
- Remove or disable the console.log used for debugging to avoid unintended log output in production.
console.log('context', context);
src/encoded/static/components/item-pages/FileView.js:102
- Review the removal of 'SMAFI557D2E7' from the accessionsOfInterest list to ensure the alert behavior remains as intended.
const accessionsOfInterest = ['SMAFIB6EQLZM'];